import {
    configureStore
} from '@reduxjs/toolkit'

//引入暴露的reducer
import countReducer from './slice/countSlice'
import movieReducer from './slice/movieSlice'

// store ：仓库是Redux的核心
// 一个应用只有一个 store
// 创建：const store = createStore（reducer）
// 获取数据：store.getState()
// 更新数据：store.dispatch(action)


 const store = configureStore({
    reducer:{
       count : countReducer,
       movie: movieReducer,
    }
})

export default store